
 
 '   D e m o   -   L o a d   f i l e   /   D e c o d e   t o   v a r s   /   P r i n t   v a r s 
 
 
 
 V a r i a b l e   S t r i n g     O p t i o n 1 
 
 V a r i a b l e   S t r i n g     O p t i o n 2 
 
 V a r i a b l e   S t r i n g     O p t i o n 3 
 
 V a r i a b l e   N u m e r i c   V e l o c i t y 
 
 V a r i a b l e   N u m e r i c   D e l a y 
 
 
 
 G o s u b   D e c o d e O p t i o n F i l e 
 
 
 
 G o s u b   P r i n t O p t i o n s 
 
 
 
 S t o p 
 
 
 
 
 
 L a b e l   D e c o d e O p t i o n F i l e 
 
 	 '   - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -   l o a d   t h e   f i l e 
 
 	 L o a d   s 1   " S e t u p F i l e . t x t " 
 
 	 '   - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -   g e t   n u m b e r   o f   l i n e s 
 
 	 v 1   =   G e t S e p a r a t e d S t r i n g C o u n t ( s 1 ,   C R L F ) 
 
 	 '   - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -   f o r   e a c h   l i n e . . . 
 
 	 F o r   v 2   =   0   T o   v 1 
 
 	 	 '   - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -   g e t   t h e   l i n e   t o   s 2 
 
 	 	 s 2   =   G e t S e p a r a t e d S t r i n g ( s 1 ,   v 2 ,   C R L F ) 
 
 	 	 '   - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -   g e t   t h e   n a m e   t o   s 3 
 
 	 	 s 3   =   G e t S e p a r a t e d S t r i n g ( s 2 ,   0 ) 
 
 	 	 '   - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -   g e t   t h e   v a l u e   t o   s 4 
 
 	 	 s 4   =   G e t S e p a r a t e d S t r i n g ( s 2 ,   2 ) 
 
 	 	 '   - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -   d e c o d e   o p t i o n   n a m e s 
 
 	 	 S e l e c t   s 3 
 
 	 	 	 C a s e   " O p t i o n 1 " 
 
 	 	 	 	 O p t i o n 1   =   s 4 
 
 	 	 	 C a s e   " O p t i o n 2 " 
 
 	 	 	 	 O p t i o n 2   =   s 4 
 
 	 	 	 C a s e   " O p t i o n 3 " 
 
 	 	 	 	 O p t i o n 3   =   s 4 
 
 	 	 	 C a s e   " V e l o c i t y " 
 
 	 	 	 	 V e l o c i t y   =   s 4 
 
 	 	 	 C a s e   " D e l a y " 
 
 	 	 	 	 D e l a y   =   s 4 
 
 	 	 E n d S e l e c t 
 
 	 N e x t 
 
 R e t u r n 
 
 
 
 L a b e l   P r i n t O p t i o n s 
 
 	 '   - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -   o p e n   t h e   T e x t B o x 
 
 	 C o n t r o l s   O p e n T e x t B o x 
 
 	 C o n t r o l s   C l e a r T e x t B o x   
 
 	 P r i n t   C R L F 
 
 	 '   - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -   p r i n t   t h e   o p t i o n s 
 
 	 P r i n t   O p t i o n 1   +   C R L F 
 
 	 P r i n t   O p t i o n 2   +   C R L F 
 
 	 P r i n t   O p t i o n 3   +   C R L F 
 
 	 P r i n t   V e l o c i t y   +   C R L F 
 
 	 P r i n t   D e l a y   +   C R L F 
 
 R e t u r n 
 
 
 
 
 
 ' W A T C H   s 2 
 
 ' W A T C H   s 3 
 
 ' W A T C H   s 4 
 
 ' W A T C H   O p t i o n 1 
 
 ' E X E C   G o s u b   t e s t 2 
 
 